﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Details.aspx.cs" Inherits="MvcMall.AdminWeb.Manage.GoodsCategories.Details" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title></title>
    <meta http-equiv="x-ua-compatible" content="ie=7" />
    <link href="/Scripts/Validate/pagevalidator.css" rel="stylesheet" type="text/css" />
    <link href="/Styles/themes/base/jquery-ui.css" rel="stylesheet" type="text/css" />
    <link href="/Styles/Site.css" rel="stylesheet" type="text/css" />
    <script src="/Scripts/jquery-1.4.4.min.js" type="text/javascript"></script>
    <script src="/Scripts/jquery-ui.min.js" type="text/javascript"></script>
    <script src="/Scripts/Validate/pagevalidator.js" type="text/javascript"></script>
    <script>
        $(function () {
            $("#tabs").tabs();
        });
    </script>
</head>
<body>
    <form id="form1" runat="server">
    <asp:ScriptManager ID="ScriptManager1" EnablePartialRendering="true" runat="server">
    </asp:ScriptManager>
    <div id="tabs">
        <ul>
            <li><a href="#list">商品分类信息详情</a></li>
        </ul>
        <div id="list">
            <div id="basicInfo">
                <table width="100%">
                    <tr>
                        <th colspan="4">
                            商品分类基本信息
                        </th>
                    </tr>
                    <tr>
                        <td style="text-align: right; width: 15%; font-weight: normal">
                            ID:
                        </td>
                        <td style="width: 35%">
                            <asp:Label ID="lblId" runat="server"></asp:Label>
                        </td>
                        <td style="text-align: right; width: 15%; font-weight: normal">
                            分类名称:
                        </td>
                        <td style="width: 35%">
                            <asp:Label ID="lblCatName" runat="server"></asp:Label>
                        </td>
                    </tr>
                    <tr>
                        <td style="text-align: right; width: 15%; font-weight: normal">
                            关键字:
                        </td>
                        <td style="width: 35%">
                            <asp:Label ID="lblKeyWords" runat="server"></asp:Label>
                        </td>
                        <td style="text-align: right; width: 15%; font-weight: normal">
                            分类描述:
                        </td>
                        <td style="width: 35%">
                            <asp:Label ID="lblCatDesc" runat="server"></asp:Label>
                        </td>
                    </tr>
                    <tr>
                        <td style="text-align: right; width: 15%; font-weight: normal">
                            父级分类:
                        </td>
                        <td style="width: 35%">
                            <asp:Label ID="lblParentCatName" runat="server"></asp:Label>
                        </td>
                        <td style="text-align: right; width: 15%; font-weight: normal">
                            分类层级:
                        </td>
                        <td style="width: 35%">
                            <asp:Label ID="lblCatGrade" runat="server"></asp:Label>
                        </td>
                    </tr>
                    <tr>
                        <td style="text-align: right; width: 15%; font-weight: normal">
                            商品数量:
                        </td>
                        <td style="width: 35%">
                            <asp:Label ID="lblGoodsNumber" runat="server"></asp:Label>
                        </td>
                        <td style="text-align: right; width: 15%; font-weight: normal">
                            排序编号:
                        </td>
                        <td style="width: 35%">
                            <asp:Label ID="lblSortOrder" runat="server"></asp:Label>
                        </td>
                    </tr>
                </table>
            </div>
            <div id="attributes" style="margin-top: 8px;">
                <table width="100%">
                    <tr>
                        <th>
                            商品分类扩展属性列表
                        </th>
                    </tr>
                    <tr>
                        <td>
                            <asp:Repeater ID="rptAttributes" runat="server" EnableViewState="false">
                                <HeaderTemplate>
                                    <table width="100%">
                                        <tr>
                                            <th>
                                                属性名称
                                            </th>
                                            <th>
                                                录入方式
                                            </th>
                                            <th>
                                                属性类型
                                            </th>
                                            <th>
                                                可选值列表
                                            </th>
                                            <th>
                                                是否筛选
                                            </th>
                                            <th>
                                                排序
                                            </th>
                                        </tr>
                                </HeaderTemplate>
                                <ItemTemplate>
                                    <tr>
                                        <td>
                                            <%# Eval("AttrName")%>
                                        </td>
                                        <td>
                                            <%# Eval("AttrInputType")%>
                                        </td>
                                        <td>
                                            <%# Eval("AttrType") %>
                                        </td>
                                        <td>
                                            <%# Eval("AttrValues")%>
                                        </td>
                                        <td>
                                            <%# Eval("AttrIndex")%>
                                        </td>
                                        <td>
                                            <%# Eval("SortOrder")%>
                                        </td>
                                    </tr>
                                </ItemTemplate>
                                <FooterTemplate>
                                    </table></FooterTemplate>
                            </asp:Repeater>
                        </td>
                    </tr>
                </table>
            </div>
            <div id="childCats" style="margin-top: 8px;">
                <table width="100%">
                    <tr>
                        <th>
                            商品分类 - 子类列表
                        </th>
                    </tr>
                    <tr>
                        <td>
                            <asp:Repeater ID="rptChildCats" runat="server" ViewStateMode="Disabled" EnableViewState="false">
                                <HeaderTemplate>
                                    <table width="100%">
                                        <tr>
                                            <th>
                                                Id
                                            </th>
                                            <th>
                                                分类名称
                                            </th>
                                            <th>
                                                排序编号
                                            </th>
                                            <th>
                                                父级分类
                                            </th>
                                            <th>
                                            </th>
                                        </tr>
                                </HeaderTemplate>
                                <ItemTemplate>
                                    <tr>
                                        <td>
                                            <%# Eval("Id") %>
                                        </td>
                                        <td>
                                            <%# Eval("CatName") %>
                                        </td>
                                        <td>
                                            <%# Eval("SortOrder") %>
                                        </td>
                                        <td>
                                            <%# Eval("CatGrade") %>
                                        </td>
                                        <td>
                                            <a href='Details.aspx?Id=<%# Eval("Id") %>'>详情</a>
                                        </td>
                                    </tr>
                                </ItemTemplate>
                                <FooterTemplate>
                                    </table></FooterTemplate>
                            </asp:Repeater>
                        </td>
                    </tr>
                </table>
            </div>
        </div>
    </div>
    </form>
</body>
</html>
